package com.wentao.thisService.mapper;

import com.wentao.thisService.model.OrderEntity;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderDao {

    public List<OrderEntity> Search(OrderEntity entity);

    public List<OrderEntity> SearchPage(@Param("entityItem") OrderEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void Update(@Param("entityItem") OrderEntity entity, @Param("valueItem") OrderEntity val);

    public void Insert(OrderEntity entity);

    public List<OrderEntity> SearchAut(OrderEntity entity);

    public List<OrderEntity> SearchPageAut(@Param("entityItem") OrderEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void UpdateAut(@Param("entityItem") OrderEntity entity, @Param("valueItem") OrderEntity val);

    public IntResultEntity Count(OrderEntity entity);

    public IntResultEntity CountAut(OrderEntity entity);

    public List<OrderEntity> SearchByOrderIdList(@Param("orderIdList") List<Long> orderIdList);

    List<OrderEntity> SearchBuyingTaskCompletedUserId();
    List<OrderEntity> SearchBuyingTaskNotCompletedUserId();
}